package com.accp.vehiclecare.biz.syhbiz;

import com.accp.vehiclecare.dao.syhdao.IempDAO;
import com.accp.vehiclecare.vo.syhvo.Employee;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class EmpBiz {

    @Resource
    private IempDAO dao;

    @Transactional(propagation = Propagation.SUPPORTS, isolation = Isolation.READ_COMMITTED, readOnly = true)
    public Employee queryOne(String zh,String mm){
        return dao.queryUserWithRole(zh, mm);
    }
}
